# encoding: UTF-8
 
class Site::ArchivesController < ApplicationController

  layout 'site'

  def index
    @archives = Topic.open_status.paginate(:page => params[:page], :per_page => '25')
    @category = ['新闻中心']
    @categories = Topic.categories
    @newto = Manual.open_status.newto_all
    set_seo_meta '分类浏览_新闻中心'
  end

  def show
    @archive = Topic.find(params[:id])
    @category = Topic.category(@archive.category)
    @categories = Topic.categories
    @newto = Manual.open_status.newto_all
    set_seo_meta @archive.title+'_详细内容_新闻中心'
  end

end
